<?php
	require_once('checklogin.php');
	ob_start();
	$p=$_GET['p'];
	require_once('classQuanTriTin.php');
	$qt = new quantritin;
	$qt2 = new quantritin;
	$menu = $qt->MenuNgang();
	$menu2 = $qt2->MenuDoc();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CareWithLove Administrator</title>
<link href="../css/oh_admin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/ddsmoothmenu_ngang.css" />

<script type="text/javascript" src="../script/jquery.min.js"></script>
<script type="text/javascript" src="../script/ddsmoothmenu.js"></script>



<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
</head>

<body>
<div align="center">
  <div id="admin">

    <div id="header">
      <div id="header_left"></div>
      <div id="header_right"></div>
      <div id="header_center"></div>
    </div>

    <!---------------------------------MENU NGANG--------------------------------->
        <div id="menu_ngang">
            <div id="smoothmenu1" class="ddsmoothmenu">
                <ul>
                <?php while($menu_ngang=mysql_fetch_assoc($menu)) {?>
                <li><a href="<?=$menu_ngang[urlLink]?>"><?=$menu_ngang[Ten]?></a></li>
               	<?php } ?>
                </ul>
            </div>
    	</div>
    <!---------------------------------MENU NGANG--------------------------------->
    

    
    <div id="content">
    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="8%" align="left" valign="top">
            <!---------------------------------MENU DỌC--------------------------------->
			<div id="content_left">            
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <?php while($menu_doc=mysql_fetch_assoc($menu2)) { ?>
                      <tr align="center" valign="top">
                        <td width="84" align="center"><a data-tooltip="sticky1" href="<?=$menu_doc['urlLink']?>"><img height="59" width="59" src="../<?=$menu_doc['urlHinh']?>" alt="<?=$menu_doc['Ten']?>" title="<?=$menu_doc['Title']?>"/></a>                        </td>
                      </tr>
                     <?php  } ?>
                </table>
            </div>
            <!---------------------------------MENU DỌC--------------------------------->
        </td>
        <td width="100%" align="left" valign="top">
        	<div id="search"></div>
			<div id="content_right_content">
        	
        	  <?php
				if($p=='tintuc_add') include 'tintuc_them1.php';
				elseif($p=='tintuc_list') include 'tintuc_xemds.php';
				elseif($p=='tintuc_chinh') include 'tintuc_chinh1.php';
				elseif($p=='loaitin_chinh') include 'loaitin_chinh.php';
				elseif($p=='loaitin_add') include 'loaitin_them.php';
				elseif($p=='loaitin_list') include 'loaitin_xemds.php';
				elseif($p=='theloai_chinh') include 'theloai_chinh.php';
				elseif($p=='theloai_add') include 'theloai_them.php';
				elseif($p=='theloai_list') include 'theloai_xemds.php';
				elseif($p=='quangcao') include 'quangcao_xemds.php';
				elseif($p=='quangcao_bottom') include 'quangcao_bottom.php';
				elseif($p=='hinhanh_add') include 'hinhanh_them.php';
				elseif($p=='hinhanh_list') include 'hinhanh_xemds.php';
				elseif($p=='diadanh_list') include 'diadanh_xemds.php';
				elseif($p=='diadanh_add') include 'diadanh_them.php';
				elseif($p=='diadanh_chinh') include 'diadanh_chinh.php';
				elseif($p=='account_list') include 'account_xemds.php';
				elseif($p=='account_add') include 'account_them.php';
				elseif($p=='account_chinh') include 'account_chinh.php';
				elseif($p=='news_list') include 'tinngoaile_xemds.php';
				elseif($p=='news_add') include 'tinngoaile_them1.php';
				elseif($p=='yahoo') include 'yahoo_xemds.php';
				elseif($p=='ykienkhachhang') include 'ykienkhachhang_xemds.php';
				elseif($p=='views') include 'solanxem.php';
				// 2012 Nov 27th
				//For customer
				elseif($p=='customer_list') include 'customer_list.php';
				elseif($p=='customer_edit') include 'customer_edit.php';
				elseif($p=='customer_add') include 'customer_add.php';
				
				//For nurse
				elseif($p=='nurse_list') include 'nurse_list.php';
				elseif($p=='nurse_edit') include 'nurse_edit.php';
				elseif($p=='nurse_add') include 'nurse_add.php';
				elseif($p=='nurse_detail') include ('nurse_detail.php');
				
				//For district
				elseif($p=='district_list') include 'district_list.php';
				elseif($p=='district_add') include 'district_add.php';
				elseif($p=='district_edit') include 'district_edit.php';
				//For ward
				elseif($p=='ward_list') include 'ward_list.php';
				elseif($p=='ward_add') include 'ward_add.php';
				elseif($p=='ward_edit') include 'ward_edit.php';
				
				//For search
				elseif($p=='customer_search') include ('customer_search.php');
				elseif($p=='search') include ('customer_result.php');
				elseif($p=='search_phone') include ('customer_result_phone.php');
				
				elseif($p=='nurse_search') include ('nurse_search.php');
				elseif($p=='search_n') include ('nurse_result.php');
				elseif($p=='search_phone_n') include ('nurse_result_phone.php');
			?>  
            </div>      
       </td>
      </tr>
    </table>


      
    </div>
    <div id="footer">Copyright &copy; 2011 by <span class="bkvtin"><a href="ymsgr:sendim?bkvtin&amp;m=Hello BKVTIN">Trần Hữu Trung Tín</a></span></div>
  </div>
</div>
</body>
</html>
